package com.itany.shop.controller;

import java.util.Scanner;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public class StartController {

    private Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        new StartController().showMenu();
    }

    public void showMenu() {
        System.out.println("**************************欢迎来到紫金商城**************************");
        System.out.print("请选择服务(1.注册 2.登录 3.查看商品信息 4.分页查询 5.退出):");
        int choice = sc.nextInt();
        switch (choice) {
            case 1:
                register();
                break;
            case 2:
                login();
                break;
            case 3:
                findProducts();
                break;
            case 4:
                findPage();
                break;
            case 5:
                System.out.println("提示:您已经退出");
                break;
            default:
                System.out.println("错误:对不起,您输入的选项有误,请重新输入!");
                break;
        }
    }

    public void register() {

        showMenu();
    }

    public void login() {

        showMenu();

    }

    public void findProducts() {

        showMenu();
    }


    public void findPage() {

        showMenu();
    }
}
